﻿using System;
using System.Collections.Generic;
using System.Linq;
using CTMOES;
using CTMOES.Models;
using CTMAdmin;

namespace CTMOES.DAL
{
    /// <summary>
    /// 得分的数据访问器
    /// </summary>
    public class SubjectProvider
    {
        /// <summary>
        /// 数据库上下文
        /// </summary>
        private static readonly CTMDBEntities _db = new CTMDBEntities();

        /// <summary>
        /// 添加分数
        /// </summary>
        /// <param name="score">分数模型</param>
        /// <returns>成功标志</returns>
        public static bool AddSubject(SubjectModel Subject)
        {
            return true;
        }

        /// <summary>
        /// 更新分数
        /// </summary>
        /// <param name="Subject">分数模型</param>
        /// <returns>成功标志</returns>
        public static bool UpdateSubject(SubjectModel Subject)
        {
            return true;
        }

        /// <summary>
        /// 删除得分
        /// </summary>
        /// <param name="paperID">试卷ID</param>
        /// <param name="studentID">学生ID</param>
        /// <returns>成功标志</returns>
        public static bool DeleteSubject(Guid paperID, Guid studentID)
        {
            return true;
        }
    }
}